import os

def list_file(directory):
    files = []
    for f in os.listdir(directory):
        if os.path.isdir(f):
            files += list_file(f)
        else:
            files.append(f)
    return files

if __name__ == '__main__':
    print(list_file('.'))
